import Vue from 'vue';
import App from './App.vue';
import router from './router';

// 使用element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);


import axios from './util/interceptor.js';

axios.defaults.baseURL='http://localhost:8081/';
Vue.prototype.$http = axios;

import store from './store/index.js';

Vue.config.productionTip = false

new Vue({
  el: '#app',
  store,
  router,
  render: h => h(App),
  // template: '<App/>',
  // components: {
  //     App
  // },

}).$mount('#app')